<%--
  Created by IntelliJ IDEA.
  User: cos
  Date: 2022/3/14
  Time: 9:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
</head>
<body>
<h1>登录</h1>
<div>
    <%-- security默认的认证提交地址为/login --%>
    <%-- security默认的认证提提交方式必须为post,username和password --%>
    <form action="/login" method="post">
        用户名: <input type="text" name="username"> <br>
        密码: <input type="password" name="password"> <br>
        <input type="submit">
        <security:csrfInput/>
    </form>
</div>
</body>
</html>
